/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cx1.service.api;

import java.util.List;
import org.cx1.model.Amenity;
import org.cx1.model.utils.ServiceResponse;

/**
 *
 * @author CX
 */
public interface IAmenityService {
    
    public ServiceResponse<String> create(Amenity amenity);
    
    public ServiceResponse<Amenity> read(String id);
    
    public ServiceResponse<List<Amenity>> readAll(int offset, int limit);
    
    public ServiceResponse<Boolean> update(Amenity amenity);
    
    public ServiceResponse<Boolean> delete(String id);
            
    public ServiceResponse<Amenity> readByTitle(String title);
    
}
